toolcache
object toolcache
Content copied to clipboard
Wrappers for @actions/tool-cache.
Functions
cacheFile
Link copied to clipboard
Caches a downloaded file (GUID) and installs it into the tool cache with a given targetNameThe cache will be keyed on tool, version, and arch, and the file will be put at targetFile inside that cache.
downloadTool
Link copied to clipboard
suspend fun downloadTool(url: String, dest: Path? = null, auth: String? = null, headers: HeaderProvider = HeaderProvider { }): Path
Content copied to clipboard
evaluateVersions
Link copied to clipboard
fun evaluateVersions(versions: List<String>, versionSpec: String): String?
Content copied to clipboard
extractTar
Link copied to clipboard
suspend fun extractTar(file: Path, dest: Path? = null, vararg flags: String = arrayOf("xz")): Path
Content copied to clipboard
extractXar
Link copied to clipboard
suspend fun extractXar(file: Path, dest: Path? = null, vararg flags: String): Path
Content copied to clipboard
extractZip
Link copied to clipboard
findAllVersions
Link copied to clipboard
fun findAllVersions(toolName: String, arch: String? = null): List<String>
Content copied to clipboard
findFromManifest
Link copied to clipboard
suspend fun findFromManifest(versionSpec: String, stable: Boolean, manifest: List<IToolRelease>, archFilter: String = os.arch()): IToolRelease?
Content copied to clipboard
getManifestFromRepo
Link copied to clipboard
suspend fun getManifestFromRepo(owner: String, repo: String, auth: String? = null, branch: String = "master"): List<IToolRelease>
Content copied to clipboard
isExplicitVersion
Link copied to clipboard
Sources
js source
Link copied to clipboard